<style type="text/css">
<!--
<?
if ($this->newsDb->pic == "") :
	?> #pic_view {
	display: none;
}

<?
endif








?>
-->
</style>
<script type="text/javascript">
    $().ready(function(){
        $("#form_article").validate({
            rules: {
                news_title: {
                    required: true
                },
                news_content: {
                    required: true
                },
                news_uptime: {
                    required: true
                }
            },
            messages: {
                news_title: {
                    required: "请输入标题!"
                },
                news_content: {
                    required: "请输入内容!"
                },
                news_uptime: {
                    required: "请输入发布时间!"
                }
            }
        });
        $("#pic").change(function(){
            $("img").attr("src", $(this).val()).css("display", "inline");
        });
    });
</script>
<form action="/admin/article/<?=$this->action?>" method="POST"
	enctype="multipart/form-data" name="form_article" id="form_article">
<table class="table1">
	<caption></caption>
	<tr>
		<td>类型: <?=$this->FormSelect ( 'news_type', $this->newsDb->news_type, null, array ('article' => '新闻', 'notice' => '公告', 'other' => '其他' ) )?></td>
	</tr>
	<tr>
		<td>
                标题:
                <?=$this->FormText ( "news_title", $this->newsDb->news_title, array ("style" => "width:300px" ) ) . $this->formHidden ( "time", $this->newsDb->time ) . $this->formHidden ( "mode", $this->newsDb->mode ) . $this->formHidden ( "news_view", $this->newsDb->news_view ) . $this->formHidden ( "id", $this->newsDb->id )?>
            </td>
	</tr>
	<tr>
		<td>
                标题图片:
                <?=$this->FormFile ( "pic", "123" )?>
                <img src="/html/upfile/article/<?=$this->newsDb->pic?>"
			alt="<?=$this->newsDb->news_title?>" name="pic_view" width="75"
			height="60" id="pic_view" /></td>
	</tr>
	<tr>
		<td>
                作者:
                <?=$this->username . $this->formHidden ( "news_uid", $this->newsDb->news_uid )?>
            </td>
	</tr>
	<tr>
		<td>
                栏目:
                <?=$this->formSelect ( 'column_id', $this->newsDb->column_id, null, $this->b )?>
            </td>
	</tr>
	<tr>
		<td>
                内容:
                <?=$this->Fck ( "news_content", $this->newsDb->news_content, '100%', '400', "Default" )?>
            </td>
	</tr>
</table>
<div style="text-align: center; margin: 10px">
        <?=$this->formSubmit ( "123", "保存" )?>
    </div>
</form>
